import request from "@/utils/axios";

export function getRouter(data) {
	return request({
		path: "/admin/getRouter",
		data
	});
}
export function getRouterSystem(data) {
	return request({
		path: "/admin/getRouterSystem",
		data
	});
}
export function getUserInfo(data) {
	return request({
		path: "/admin/getUserInfo",
	});
}
export function getRoles(data) {
	return request({
		path: "/admin/getRoles",
		data
	});
}
export function getRolesAll(data) {
	return request({
		path: "/admin/getRolesAll",
		data
	});
}
export function addRoles(data) {
	return request({
		path: "/admin/addRoles",
		data,
	});
}
export function upRoles(data) {
	return request({
		path: "/admin/upRoles",
		data,
	});
}
export function delRoles(data) {
	return request({
		path: "/admin/delRoles",
		data,
	});
}

export function addMenu(data) {
	return request({
		path: "/admin/addMenu",
		data,
	});
}
export function changeMenu(data) {
	return request({
		path: "/admin/changeMenu",
		data,
	});
}
export function delMenu(data) {
	return request({
		path: "/admin/delMenu",
		data,
	});
}
export function getUser(data) {
	return request({
		path: "/admin/getUser",
		data,
	});
}

export function addUser(data) {
	return request({
		path: "/admin/addUser",
		data,
	});
}

export function upUser(data) {
	return request({
		path: "/admin/upUser",
		data,
	});
}
export function upUserPwd(data) {
	return request({
		path: "/admin/upUserPwd",
		data,
	});
}
export function delUser(data) {
	return request({
		path: "/admin/delUser",
		data,
	});
}
export function upTheme(data) {
	return request({
		path: "/admin/upTheme",
		data,
	});
}
export function login(data) {
	return request({
		path: "/admin/login",
		data,
	});
}



//获取产品列表
export function getProductSelect(){
  return request({
    path: "/admin/getProductSelect",
  });
}
//产品
export function getProduct(data) {
	return request({
		path: "/admin/getProduct",
		data,
	});
}
export function getProductItem(data) {
	return request({
		path: "/admin/getProductItem",
		data,
	});
}

export function addProduct(data) {
	return request({
		path: "/admin/addProduct",
		data,
	});
}

export function upProduct(data) {
	return request({
		path: "/admin/upProduct",
		data,
	});
}
export function delProduct(data) {
	return request({
		path: "/admin/delProduct",
		data,
	});
}


//四个赠品的增删查改
export function getGift(data) {
	return request({
		path: "/admin/getGift",
		data,
	});
}
export function upGift(data) {
	return request({
		path: "/admin/upGift",
		data,
	});
}
export function addGift(data) {
	return request({
		path: "/admin/addGift",
		data,
	});
}
export function delGift(data) {
	return request({
		path: "/admin/delGift",
		data,
	});
}

//订单信息调用api
export function getOrder(data) {
	return request({
		path: "/admin/getOrder",
		data,
	});
}
export function getAllOrder(data) {
	return request({
		path: "/admin/getAllOrder",
		data,
	});
}
export function getAllNewOrder(data) {
	return request({
		path: "/admin/getAllNewOrder",
		data,
	});
}
export function excleTrackingNumber(data) {
	return request({
		path: "/admin/excleTrackingNumber",
		data,
	});
}
export function excleTrackingNumberNew(data) {
	return request({
		path: "/admin/excleTrackingNumberNew",
		data,
	});
}
export function resendMsg(data) {
	return request({
		path: "/syn/resendMsg",
		data,
	});
}




export function upOrder(data) {
	return request({
		path: "/admin/upOrder",
		data,
	});
}


export function updateMassageState(data) {
	return request({
		path: "/admin/updateMassageState",
		data,
	});
}

//上传
export function upload(data) {
	return request({
		path: "/upload/uploadOss",
		data,
	});
}
export function uploads(data) {
	return request({
		path: "/admin/uploads",
		data,
	});
}



//新订单
export function getNewOrder(data) {
	return request({
		path: "/admin/getNewOrder",
		data,
	});
}


export function upNewOrder(data) {
	return request({
		path: "/admin/upNewOrder",
		data,
	});
}